package com.ctrip.coverage.utils.beans;
import java.io.File;

import com.thoughtworks.xstream.XStream;
import com.thoughtworks.xstream.io.xml.StaxDriver;

public class Main {
	public static void main(String args[]){
		XStream xstream = new XStream(new StaxDriver());
//		xstream.autodetectAnnotations(true); 
		xstream.processAnnotations(NetCoverage.class);
		xstream.processAnnotations(Module.class);
		xstream.processAnnotations(NamespaceTable.class);
		//add by mcc
		xstream.processAnnotations(Class.class);
		xstream.processAnnotations(Method.class);
		xstream.processAnnotations(Lines.class);
		//end
		
		
		xstream.ignoreUnknownElements();
		NetCoverage thecoverage=(NetCoverage)xstream.fromXML(new File("D:\\worktemp\\代码覆盖率\\output2011111038.coveragexml"));
		System.out.println("a");
		System.out.println("a");
		System.out.println("a");
		System.out.println("a");
		System.out.println("a");
		System.out.println("a");
		
//		xstream.processAnnotations(Test.class);
//		Test test=(Test)xstream.fromXML("<Test><ModuleName>testname</ModuleName><abc>testname</abc></Test>");
	}
}
